/**
 * Fn 通过rest进行访问OAuthor 2.0 web api
 * Created by  on 2016/10/31.
 * By Pellolove
 */
app.service("restService", [ '$rootScope','$scope','$timeout', function($rootScope,$scope,$timeout){


    var _tokenUrl =$rootScope.tokenUrl ;
    var _loginUrl = $rootScope.loginUrl;

    //当前使用的_token
    var _token="";


    var _tokenValidate= function(){
        if(_token && _token){

        }else{
           // $timeout
        }
    }

    this.wtGet = function(){

    }
    this.wtPost = function(){

    }
    this.wtPut =function(){

    }
    /**
     *删除服务
     *
     * */
    this.wtDelete =function(){

    }
}]);